package cn.dataling.ai.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;

/**
 * 聊天对话
 */
@TableName(value = "ai_chat_conversation")
public class AiChatConversation {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户openId
     */
    @TableField(value = "open_id")
    private String openId;

    /**
     * 对话ID
     */
    @TableField(value = "conversation_id")
    private String conversationId;

    /**
     * 对话标题
     */
    @TableField(value = "conversation_title")
    private String conversationTitle;

    @TableField(value = "created_at")
    private LocalDateTime createdAt;

    /**
     * 获取主键
     *
     * @return id - 主键
     */
    public Long getId() {
        return id;
    }

    /**
     * 设置主键
     *
     * @param id 主键
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 获取用户openId
     *
     * @return open_id - 用户openId
     */
    public String getOpenId() {
        return openId;
    }

    /**
     * 设置用户openId
     *
     * @param openId 用户openId
     */
    public void setOpenId(String openId) {
        this.openId = openId;
    }

    /**
     * 获取对话ID
     *
     * @return conversation_id - 对话ID
     */
    public String getConversationId() {
        return conversationId;
    }

    /**
     * 设置对话ID
     *
     * @param conversationId 对话ID
     */
    public void setConversationId(String conversationId) {
        this.conversationId = conversationId;
    }

    /**
     * 获取对话标题
     *
     * @return conversation_title - 对话标题
     */
    public String getConversationTitle() {
        return conversationTitle;
    }

    /**
     * 设置对话标题
     *
     * @param conversationTitle 对话标题
     */
    public void setConversationTitle(String conversationTitle) {
        this.conversationTitle = conversationTitle;
    }

    /**
     * @return created_at
     */
    public LocalDateTime getCreatedAt() {
        return createdAt;
    }

    /**
     * @param createdAt
     */
    public void setCreatedAt(LocalDateTime createdAt) {
        this.createdAt = createdAt;
    }
}